package com.ztools.fragment;

import com.ztools.mvp.BasePresenter;

import java.util.Map;

import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by zhangxuehui on 2018/6/11.
 */

public abstract class CommonListPresenter extends BasePresenter<ICommonListView> {
    private Map<String, String> params;
    private Observable<?> observable;
    private Observer observer;

    public CommonListPresenter(Observable<?> observable, Map<String, String> params, Observer observer) {
        this.observable = observable;
        this.params = params;
        this.observer = observer;
    }

//    public abstract void getListData();

    public void getListData() {
        observable.subscribe(observer);
    }
}
